<template>
  <div class="salarys">
    <h2>工资</h2>
    <Fullscreen />
    <br>
    <h2>{{ $t('xxx') }}</h2>
    <el-button @click="btnClick">点击切换语言</el-button>
  </div>
</template>

<script>
import cookiejs from 'js-cookie'
export default {
  methods: {
    btnClick() {
      console.log(this.$t('xxx'))
      this.$i18n.locale = this.$i18n.locale === 'zh' ? 'en' : 'zh'
      cookiejs.set('lang', this.$i18n.locale)
      // 刷新整个网站
      this.$router.go(0)
    }
  }
}
</script>

<style></style>
